class Admin::MerchantController < Admin::BaseController  

  active_scaffold :merchant do |config|
      config.label = "商户"
      config.columns = [:store, :username, :password, :real_name, :last_login_time]
      config.create.columns = [:username, :password, :real_name]
      config.list.columns.exclude :password
      list.sorting = {:username => 'ASC'}
      columns[:username].label = "用户名"
      columns[:password].label = "密码"
      columns[:real_name].label = "真名" 
      columns[:store].label = "店铺" 
      columns[:last_login_time].label = "上次登录时间"
  end
end
